function make_request() {
    search_text = document.getElementById('nr_referinta').value;
    identity = document.getElementById('identity').value;
    search_text = escape(search_text);

    parameters = 'id=' + identity + '&id2=' + search_text;
    url = 'http://www.onlinelogistics.eu/get_status_comanda.php?' + parameters;
    do_ajax(url);
}

function do_ajax (url) {
    // Create new JS element
    var jsel = document.createElement('SCRIPT');
    jsel.type = 'text/javascript';
    jsel.src = url;

    // Append JS element (therefore executing the 'AJAX' call)
     document.body.appendChild (jsel);
}

function show_result(result) {
    document.getElementById('response').innerHTML = result;
}